<template>
 <div class="Imgbox">
 <div v-for="(item,index) in ImgList" :key="index">
      <img  :src="item.ImgPath">
 </div>
       
 </div>
</template>
<script>
import api from '../fetch/api.js'
 export default {
     data(){
         return{
             ImgList:[]
         }
     },
     created(){
        api.Post('Order/PolicyOrder/GetOneModel',{ID:this.$route.params.id}).then(res=>{
            let PhotoList=res.InsurancePolicyPhoto.split(',')
            for(let i=0;i < PhotoList.length;i++){
                this.ImgList.push({
                    ImgPath:PhotoList[i]
                })
            }
        })
        console.log(this.ImgList)
     }
 }    
</script>
<style>
.Imgbox{
    padding:10px 0; 
}
.Imgbox div {
    width:92%;
    margin:0 auto;
}
</style>